
<!-- target:edit -->
<form class="flex-cont grey-bg vertical-arrangement" name="editBrandProjectForm" ui="type:m-panel">
    <div class="blank-24"></div>
    <input ui="type:ecui.esr.CreateArray" name="budgetDetailList" class="ui-hide"/>
    <!-- var:sponsor = ${sponsor} || [] -->
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:厂牌;required:true">
        <div class="edit-input placeholder" ui="type:mao.ui.SelectEdit;title:厂牌;items:&{sponsor};name:sponsorId;value:${detail.sponsorId};text:${detail.sponsorShortName};"></div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:项目名称;required:true">
        <div ui="type:Text;" class="edit-text">
            <input type="text" name="projectName" value="${detail.projectName}" placeholder="请输入"/>
        </div>
    </div>
    <!-- var:projectType = ${mao.info.baseInfo.projectType} || [] -->
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:标签;required:true">
        <div class="edit-input placeholder" ui="type:mao.ui.SelectEdit;title:标签;items:&{projectType};mutil;view:mutil_select;name:projectTypeList;value:${*detail.projectTypeList|joinArr('projectType', ',')};text:${*detail.projectTypeList|joinArr('projectName', ',', '请选择')};"></div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:项目概述;required:true">
        <div ui="type:Text;" class="edit-text ui-textarea">
            <textarea type="text" name="projectDesc" placeholder="请输入">${detail.projectDesc}</textarea>
        </div>
    </div>

    <div class="edit-item m-b-0 b-b-2" ui="type:mao.ui.InputGroup;label:开始时间;required:true">
        <div class="edit-input " ui="type:mao.ui.MTimerCalendar;name:showStartTime;value:${detail.showStartTime|dateFormat('yyyy-MM-dd HH:mm:ss')};placeholder:请选择开始时间;regexp:.+">
            <div ui="values:2000-2040;format:{0}年"></div>
            <div ui="values:1-12;format:{0}月"></div>
            <div ui="values:1-31;format:{0}日"></div>
            <div ui="values:0-23;format:{0}时"></div>
            <div ui="values:0-59;format:{0}分"></div>
            <div ui="values:0-59;format:{0}秒"></div>
        </div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item m-b-0 b-b-2" ui="type:mao.ui.InputGroup;label:结束时间;required:true">
        <div class="edit-input " ui="type:mao.ui.MTimerCalendar;name:showEndTime;value:${detail.showEndTime|dateFormat('yyyy-MM-dd HH:mm:ss')};placeholder:请选择结束时间;regexp:.+">
            <div ui="values:2000-2040;format:{0}年"></div>
            <div ui="values:1-12;format:{0}月"></div>
            <div ui="values:1-31;format:{0}日"></div>
            <div ui="values:0-23;format:{0}时"></div>
            <div ui="values:0-59;format:{0}分"></div>
            <div ui="values:0-59;format:{0}秒"></div>
        </div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item m-b-0 inline-radio b-b-2" ui="type:mao.ui.InputGroup;label:场地;required:true">
        <div class="edit-input radio">
            <div ui="type:NS.VenueTypeRadio;name:venueType;value:0;={${detail.venueType} === '0' || !${detail.venueType} ? 'checked' : ''}">
                <span>内部</span>
                <span class="icon"></span>
            </div>
            <div ui="type:NS.VenueTypeRadio;name:venueType;value:1;={${detail.venueType} === '1' ? 'checked' : ''}">
                <span>外部</span>
                <span class="icon"></span>
            </div>
        </div>
    </div>
    <!-- var:venues = ${NS.venues} || [] -->
    <!-- var:externalVenues = ${externalVenues} || [] -->
    <!-- var:venueName = ${detail.labelProjectVenue.venueName} ? ${detail.labelProjectVenue.venueName} + ' - ' + ${detail.labelProjectVenue.yardName} : '请选择' -->
    <div class="edit-item m-b-0 b-b-2" ui="type:mao.ui.InputGroup;label:选择场馆;required:true">
        <div class="edit-input placeholder" ui="type:NS.VenueSelectEdit;title:选择场馆;items:&{venues};name:yardId;view:venue_yard_single_select;value:${detail.labelProjectVenue.yardId};text:${venueName};regexp:.+"></div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item m-b-0 b-b-2" ui="type:mao.ui.InputGroup;label:选择场馆;required:true">
        <div class="edit-input placeholder" ui="type:NS.VenueSelectEdit;disable;title:选择场馆;items:&{externalVenues};name:yardId;value:${detail.labelProjectVenue.venueId};text:={${detail.venueName} || '请选择'};regexp:.+"></div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item m-b-0 ui-hide b-b-2" ui="type:mao.ui.InputGroup;label:场馆名字;">
        <div ui="type:Text;" class="edit-text">
            <input type="text" name="yardName" value="${detail.labelProjectVenue.venueName}" placeholder="请输入"/>
        </div>
    </div>
    <div class="edit-item" ui="type:mao.ui.InputGroup;label:备注;">
        <div ui="type:Text;" class="edit-text ui-textarea">
            <textarea type="text" name="remark" placeholder="请输入">${detail.remark}</textarea>
        </div>
    </div>

    <div class="edit-item" ui="type:mao.ui.InputGroup;label:预计收入;">
        <div ui="type:Text;" class="edit-text">
            <input type="text" name="preIncome" value="${detail.preIncome}" placeholder="请输入"/>
        </div>
    </div>
    <div class="edit-item m-b-0" ui="type:mao.ui.InputGroup;label:预计人数;">
        <div ui="type:Text;" class="edit-text">
            <input type="text" name="preCount" value="${detail.preCount}" placeholder="请输入"/>
        </div>
    </div>

    <div class="budget-items" id="budget_item_add" ui="type:control">
        <!-- if:${detail.budgetDetailList} -->
            <!-- for:${detail.budgetDetailList} as ${item},${index} -->
                <!-- use:project.budget-item(item=${item},i=${index}) -->
            <!-- /for -->
        <!-- else -->
            <!-- use:project.budget-item -->
        <!-- /if -->
    </div>
    <div class="ui-button budget-item-add" id="budget_item_add" ui="ext-addItem;ext-budgetSort:add;container:budget_item_add;target:project.budget-item;position:beforeEnd"><span class="icon"></span>添加预算明细</div>

    <div class="blank-24"></div>

    <input ui="type:ecui.esr.CreateArray" name="pics" type="text" class="ui-hide" />
    <!-- use:approvalAndSendPeople -->
    <div class="blank-24"></div>
</form>

<div class="edit-btn-box">
    <div class="ui-button save-btn" ui="type:NS.SaveProjectBtn;">
        <span class="icon"></span>
        <span>暂存</span>
    </div>
    <div class="ui-button ui-button-primary submit-btn" ui="type:NS.SaveProjectBtn;">确定</div>
</div>

<!-- target:budget-item -->
<li class="budget-item" ui="type:control">
    <div class="budget-title">预算明细：</div>
    <input ui="type:ecui.esr.CreateObject" type="hidden" class="ui-hide" name="budgetDetailList" data-name="contractBusinessTerms.drinksDivideInto.proportions">
    <!-- var:sponsorFinanceExpenditureCode = ${mao.info.baseInfo.sponsorFinanceExpenditureCode} || [] -->
    <div class="edit-item m-b-0" ui="type:mao.ui.InputGroup;label:预算类型;required:true">
        <div class="edit-input placeholder" ui="type:mao.ui.SelectEdit;title:预算类型;name:budgetDetailList.budgetType;items:&{sponsorFinanceExpenditureCode};value:${item.budgetType};text:${item.budgetType|parseBaseInfo('sponsorFinanceExpenditureCode', '')};regexp:.+"></div>
        <span class="edit-icon"></span>
    </div>
    <div class="edit-item m-b-0" ui="type:mao.ui.InputGroup;label:预算名称;required:true">
        <div ui="type:Text;" class="edit-text">
            <input type="text" name="budgetDetailList.budgetName" value="${item.budgetName}" placeholder="请输入"/>
        </div>
    </div>
    <div class="edit-item m-b-0" ui="type:mao.ui.InputGroup;label:金额;required:true">
        <div ui="type:Text;" class="edit-text">
            <input type="text" name="budgetDetailList.budgetAmount" value="${item.budgetAmount}" placeholder="请输入"/>
        </div>
    </div>
    <div class="delete-btn" ui="ext-deleteItem;ext-budgetSort;must">删除</div>
</li>